package com.zerox.mapper;

import com.zerox.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysUserMapper{
    SysUser selectByUsername(@Param("account") String account);

    List<SysUser> list(@Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize,@Param("realName")String realName,@Param("roleId")Integer roleId);

    int count(@Param("realName")String realName,@Param("roleId")Integer roleId);

    int add(SysUser sysUser);

    SysUser selectById(Integer id);

    int delete(Integer id);

    int update(SysUser sysUser);

    SysUser selectUserId(Integer id);

//    @Select("select count(*) from t_sysser")
//    int result();
}